/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package homework.demo03;

/**
 *
 * @2010404106 范艺馨
 * @2010404125 叶洪
 */
import java.util.*;

public class NewWork {

    private String name;
    private String pho;
    private String dz;


    public NewWork(String name, String pho, String dz) {
        this.name = name;
        this.pho = pho;
        this.dz = dz;
    }
 public static void main(String[] args) {
  
     NewWork fangfa1 = new NewWork("张三","南宁","14795797738");
     NewWork fangfa2 = new NewWork("张四","南宁","14795797738");
     NewWork fangfa3 = new NewWork("张五","南宁","14795797738");
      System.out.println("姓名:"+fangfa1.name+";"+"地址"+fangfa2.pho+";"+"电话:"+fangfa3.dz);
      System.out.println("姓名:"+fangfa2.name+";"+"地址"+fangfa2.pho+";"+"电话:"+fangfa2.dz);
      System.out.println("姓名:"+fangfa3.name+";"+"地址"+fangfa3.pho+";"+"电话:"+fangfa3.dz);
     
}}
